<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%@ include file="/WEB-INF/views/admin/app_base.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta name="format-detection" content="telephone=no" />
    <meta content="email=no" name="format-detection" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="<%=basePath%>/static/admin/app/css/base.css">
    <link rel="stylesheet" href="<%=basePath%>/static/admin/app/css/basic.css">
    <link href="<%=basePath%>/static/admin/app/css/iconfont.css" rel="stylesheet">
    <link rel="stylesheet" href="<%=basePath%>/static/admin/app/css/bootstrap.min.css">
    <script rel="script" src="<%=basePath%>/static/admin/app/js/jquery-1.11.3.min.js"></script>
    <script rel="script" src="<%=basePath%>/static/admin/app/js/layer/layer.js"></script>
	<link rel="stylesheet" href="<%=basePath%>/static/admin/app/js/layer/skin/layer.css">
    <script rel="script" src="<%=basePath%>/static/admin/app/js/pay.js"></script>
    <script> var baselocation='<%=basePath%>/admin';</script>
    <title>支付管理</title>
</head>
<body>
<div class="viewport">
<header>
    <div class="header-title">
        <a href="<%=basePath%>/admin/order/${orderId }/details" class="return"><i class="iconfont"></i>返回</a>
        <h2>支付列表</h2>
    </div>
</header>
<article>
	<c:if test="${empty payList}"><h3>暂无支付记录</h3></c:if>
	<c:forEach var="pay" items="${payList}">
    <div class="info-con">
	    <input id="id" type="hidden" class="form-control"  readonly value="${pay.id }">
		<input id="ts" type="hidden" class="form-control"  readonly value="${pay.ts }">
		<input id="orderId" type="hidden" class="form-control"  readonly value="${pay.orderId }">
		<input id="payMoney" type="hidden" class="form-control"  readonly value="${pay.payMoney }">
        <h2 class="info-title-font-size">支付时间：<fmt:formatDate value="${pay.createdTime }" pattern="yyyy-MM-dd HH:mm:ss"/></h2>
        <ul>
            <li>
                <span>支付方式：</span>
                <span>${pay.payMethodName }</span>
            </li>
            <li>
                <span>支付账号：</span>
                <span>${pay.payAccount }</span>
            </li>
            <li>
                <span>支付金额：</span>
                <span>￥${pay.payMoney }</span>
            </li>
            <li>
                <span>支付截图：</span>
                <span><img id="payPicImage" src="${pay.payPic }" width="98" height="100"/></span>
            </li>
            <li>
                <span>描述：</span>
                <span>${pay.remark }</span>
            </li>
            <li>
                <span>状态：</span>
                <span id="payStatusName_${pay.id}">${pay.statusName }</span>
                <c:if test="${pay.status == 1}">
	        	<a id="confirmBnt" onclick="payConfirm('2')" class="btn btn-success btn-sm">确认收钱</a>&nbsp;&nbsp;
	        	<a id="confirmBnt" onclick="payConfirm('0')" class="btn btn-submit btn-sm">未收到钱</a>
				</c:if>
            </li>
        </ul>
    </div>
	</c:forEach>
</article>
</div>
</body>
</html>
